package com.example.novelsys.dao;

import com.example.novelsys.entity.Charpt;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CharptDao {

	//根据novelId和sort(章节排序)  查询小说章节
	@Select("select * from charpt where novelId=#{novelId} and sort=#{sort} ")
	public Charpt queryCharpt(@Param("novelId") Integer novelId,@Param("sort") Integer sort);
}
